package com.itheima.dao.impl;

import com.itheima.dao.BookDao;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;


@Repository("bookDao")
//@Scope设置bean的作用范围
public class BookDaoImpl implements BookDao {
    //基本属性
    @Value("${name}")
    private String name;
    public void save() {
        System.out.println("book dao save ..."+name);
    }

}
